-
Notifications
You must be signed in to change notification settings - Fork 2
Initial implementation #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Also, enable 2FA separately via a separate endpoint
Add RepositoryPermission#owner? method
Also: * add commits and webhooks APIs * trigger webhook when a push event is triggered via webhook listener
This reverts commit 9300986.
web_url: https://travis-vcs-proxy.travis-ci.org | ||
api_url: https://travis-vcs-proxy-api.travis-ci.org | ||
feedback_mail: '[email protected]' | ||
mail_from: [email protected] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can it be it overriden with env?
app/models/user.rb
Outdated
end | ||
|
||
def mark_as_deleted | ||
update_columns(email: "deleted_email_#{Kernel.rand(1_000_000_000)}", name: nil, active: false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@speedywizard Just found that the email pattern is not a valid pattern so it fails when users want to delete their account.
This email pattern gives something like "deleted_email_662959238" so I thing it should be something like
"deleted_email_#{Kernel.rand(1_000_000_000)}@example.com"
so it don't fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@travis-architect , AFAIK, update_columns
doesn't run any validations. Are you sure that it's failing because of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@speedywizard I did the same in console and it was failing there too, so when I added the "@example.com" part, it got updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@travis-architect ,hm, sorry, my bad - I just checked doc. It's pretty strange to me that Rails behaves in such an inconsistent way. update_column
indeed skips validations, but update_columns
does not
|
No description provided.